
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

package com.hlkj.pay.app.merchant.ext;

import javax.servlet.http.HttpServletRequest;

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.framework.extension.ExtensionPointI;
import com.hlkj.pay.app.merchant.ext.dto.payment.ChannelWithdrawContext;
import com.hlkj.pay.dto.order.NotifyOrderWithdrawDto;
import com.hlkj.pay.infrastructure.model.merchant.MerchantAppChannelDO;
import com.hlkj.pay.infrastructure.model.pay.ProviderChannelConfigDO;

/**
 * 商户付款
 * 
 * @author HlpayTeam
 * @date 2024/09/12 11:39
 */
public interface ChannelMerchantWithdrawExtPt extends ExtensionPointI {

    /**
     * 提交渠道提交转账
     *
     * @param channelPayOrderContext
     */
    void submitChannelWithdraw(ChannelWithdrawContext channelPayOrderContext);

    /**
     * 查询转账
     *
     * @param channelPayOrderContext
     */
    void queryChannelWithdraw(ChannelWithdrawContext channelPayOrderContext);

    /**
     * 转账订单回调
     *
     * @param request
     * @return
     */
    CommonResult<NotifyOrderWithdrawDto> orderWithdrawStatusParse(HttpServletRequest request, ProviderChannelConfigDO providerChannelConfigDO);


    /**
     *
     * @param commonResult
     * @return
     */
    String callBackResponse(CommonResult commonResult);
}
